import { Controller } from 'egg';

export default class HomeController extends Controller {
  public async index() {
    const { ctx } = this;
    await ctx.render("index");
  }

  public async info() {
    const { ctx } = this;
    ctx.body = ctx.params;
  }

  public info1() {
    const { ctx } = this;
    ctx.body = JSON.stringify({ name: "info1" });
  }


}
